package com.xixibaby.core;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(401, "参数检验失败"),
    UNAUTHORIZED(402, "暂未登录或token已经过期"),
    USER_UN_AUTH(403, "用户未做实名认证"),;

    private final int code;

    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
